import VcuChartBar from './packages/bar'
import VcuChartDonut from './packages/donut'
import VcuChartFunnel from './packages/funnel'
import VcuChartGauge from './packages/gauge'
import VcuChartGeo from './packages/geo'
import VcuChartLine from './packages/line'
import VcuChartPie from './packages/pie'
import VcuChartRadar from './packages/radar'
import VcuChartScatter from './packages/scatter'
import VcuChartTreemap from './packages/treemap'
import VcuChartSunburst from './packages/sunburst'
import VcuChartTree from './packages/tree'
import VcuChartWordcloud from './packages/wordcloud'
import VcuChartLiquidfill from './packages/liquidfill'
import VcuChartPolar from './packages/polar'
import VcuChartSankey from './packages/sankey'
import VCUCharts from './v-c-u-charts'
const components = [
  VcuChartBar,
  VcuChartDonut,
  VcuChartFunnel,
  VcuChartGauge,
  VcuChartGeo,
  VcuChartLine,
  VcuChartPie,
  VcuChartRadar,
  VcuChartScatter,
  VcuChartTreemap,
  VcuChartSunburst,
  VcuChartTree,
  VcuChartWordcloud,
  VcuChartLiquidfill,
  VcuChartPolar,
  VcuChartSankey
]

function install(Vue) {
  components.forEach(component => {
    Vue.component(component.name, component)
  })
}

export {
  VcuChartBar,
  VcuChartDonut,
  VcuChartFunnel,
  VcuChartGauge,
  VcuChartGeo,
  VcuChartLine,
  VcuChartPie,
  VcuChartRadar,
  VcuChartScatter,
  VcuChartTreemap,
  VcuChartSunburst,
  VcuChartTree,
  VcuChartWordcloud,
  VcuChartLiquidfill,
  VcuChartPolar,
  VcuChartSankey
}

VCUCharts.install = install

if (typeof window !== 'undefined' && window.Vue && window.Vue.use) {
  window.Vue.use(VCUCharts)
}

export default VCUCharts
